package com.mall.b2c.service;

import com.mall.b2c.domain.intergral.IntergralDomain;
import com.mall.b2c.domain.intergral.ShopProductDomain;
import com.mall.b2c.domain.member.MemberDomain;
import com.mall.b2c.domain.order.OrderDomain;
import com.mall.b2c.enums.IntergralLogType;
import com.mall.common.service.BaseService;


/**
 * Service接口 - 商品
 */
public interface IntergralService extends BaseService<IntergralDomain, Long>  {

  public   IntergralDomain getByMemberId(Long memberId);
  /**
   * 积分变动  记录日志
   * @param price
   * @param type
   * @param  remark
   *
   */
  public void alterations(Long memberId, int price, IntergralLogType type, String remark);
  public void saveIntergralDomain(MemberDomain memberDomain);

  public void grantGoodsIntergral(Long MemberId, OrderDomain order);

}


